home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
misc
/
gold_pk
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1993-10-19
|
7KB
|
145 lines
echo off
rem Automatic Installation routine. Requires two parameters:
rem 1: the source drive (the one with the PkGOLD Testdrive files)
rem 2: the target drive (where the program will be installed)
rem The target must have at least 360K free for the main program and
rem an additional 250K for the help system. A 720-K floppy or a hard
rem disk is recommended to allow all files to be installed.
cls
ECHO ┌────────────────────────────────────────────────┐
echo │ │
echo │ Test Drive Installation │
echo │ │
ECHO │ Interflex Systems Design │
echo │ Post Office Box 6418 │
echo │ Laguna Niguel, CA 92607-6418 │
echo │ │
echo │ VISA & MasterCard orders: (714) 496-6639 │
echo │ │
echo └────────────────────────────────────────────────┘
if t%1==t goto noparm
if t%2==t goto noparm
if t%1==t%2 goto samedrive
Goto Install
echo Found %1
rem ------------- No parameters given to install
:noparm
echo ┌───────────────────────────────────────────────────────────────────┐
echo │ Type INSTALL x: y: e.g. INSTALL A: C: (drive letters only) │
echo │ │
echo │ where x: is the source drive (the one with Pkgold Test Drive) │
echo │ and y: is the target drive, where you want to put the program. │
echo └───────────────────────────────────────────────────────────────────┘
goto done
rem ------------- User used same drive letters
:samedrive
echo ┌───────────────────────────────────────────────────────────┐
echo │ The Source drive must be different from the Target drive. │
echo │ │
echo │ e.g. INSTALL A: D: │
echo └───────────────────────────────────────────────────────────┘
goto done
:install
if not exist %1tdsfx.exe goto baddisk
echo ┌─────────────────────────────────────────────────────────────┐
echo │ o Installing from "%1" to "%2" │
echo │ │
echo │ o A subdirectory named "TESTDRIV" will be created │
echo │ │
echo │ o If this is okay, hit [enter]. To cancel installation │
echo │ at this point, use Ctrl-C. │
echo └─────────────────────────────────────────────────────────────┘
ECHO.
pause
ECHO.
%2
cd\
md TestDriv > nul
cd TestDriv > nul
if not exist pkdemo.exe goto newdir
ECHO.
echo It appears that a version of PkDEMO already exists in the
echo directory "%2\testdriv"
ECHO.
echo You can install this version "on top" of the existing version
echo by hitting any key, or you can use Control-Break to stop the
echo installation and manually delete the existing PkDEMO files.
echo Or you could install to a different drive letter.
ECHO.
echo Suggestion: Go ahead and let this install into the testdrive
echo directory by hitting any key.
ECHO.
pause
echo y|del *.* > nul
ECHO.
:NEWDIR
echo ┌────────────────────────────────────────────────────────────┐
echo │ Now unpacking the PkDEMO program and support files.... │
echo └────────────────────────────────────────────────────────────┘
ECHO.
%1tdsfx
if not exist pkdemo.exe goto noinstall
echo ┌────────────────────────────────────────────────────────────┐
echo │ Now unpacking the PkGOLD Help system... │
echo └────────────────────────────────────────────────────────────┘
ECHO.
%1tdhlpsfx
echo ┌────────────────────────────────────────────────────────────┐
echo │ Now unpacking some useful Docfiles... │
echo └────────────────────────────────────────────────────────────┘
ECHO.
%1docfiles
if exist PKDEMO.HLP goto ALLOK
echo ┌────────────────────────────────────────────────────────────┐
echo │ HELP system not installed. Not enough room (needs 200K+) │
echo └────────────────────────────────────────────────────────────┘
:ALLOK
CLS
ECHO.
ECHO.
echo ┌───────────────────────────────────────────────────────────────╖
echo │ You may now run the program by typing PKDEMO [enter] ║
rem
if NOT exist pkdemo.hlp goto skiphelp
rem
echo │ Use [F1] for online help while program is running. ║
echo │ ║
echo │ The help system has information on TNC setup and other ║
echo │ subjects. You can use the HELP system by itself by ║
echo │ starting the program with the "/H" option, e.g. PKDEMO/H ║
:skiphelp
echo │ ║
echo │ Type HELP (a batch file) to see some other documentation. ║
echo │ Also: Look at the various .DOC files on the disk. ║
echo │ ║
echo │ 73, de Jeff WA4EGT -- InterFlex Systems -- (714) 496-6639 ║
echo ╘═══════════════════════════════════════════════════════════════╝
ECHO.
echo Now type PKGOLD or PKDEMO (either will work)...
goto done
rem Bad Installation
:noinstall
cls
echo ┌───────────────────────────────────────────────────────────────┐
echo │ Sorry, but either no room on target, or you didn't specify │
echo │ the drives correctly, the Testdrive disk is not in "%2" │
echo │ or some other problem. Please insert your TestDrive disk in │
echo │ some floppy drive, and try again. │
echo └───────────────────────────────────────────────────────────────┘
ECHO.
goto done
:baddisk
ECHO.
echo ┌──────────────────────────────────────────────────────────────┐
echo │ │
echo │ TDSFX.EXE is not on the %1 drive. │
echo │ Please insert the disk, or be sure that the │
echo │ test drive files are on the source disk. │
echo │ │
echo └──────────────────────────────────────────────────────────────┘
rem Program Ends here
:done
ECHO.
ECHO Read any messages on the screen, then...
pause